{strip}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
		<link rel = "stylesheet" type="text/css" href="{Yii::app()->request->baseUrl}/css/reset-min.css" />
		<link rel = "stylesheet" type="text/css" href="{Yii::app()->request->baseUrl}/css/style.css" />
		<title>{pageTitle}</title>
	</head>
	<body>
		<div class="page">
			<div class="header">
				<a href="/"><img src="{Yii::app()->request->baseUrl}/images/logo.png" alt="logo" /></a>
                                {if !Yii::app()->user->isGuest}
                                    <div class="hello">Привет, {UserFacade::getUserById(Yii::app()->user->id)->surname} {UserFacade::getUserById(Yii::app()->user->id)->name}! <a href="{Yii::app()->request->baseUrl}/site/logout">Выйти</a></div>
                                {/if}
				<div class="clear-floating"></div>
			</div>
                        {include file='top_menu.tpl'}
			<div class="main">
				<div class="left-column">
                                        {if Yii::app()->user->isGuest}
                                            {include file='left_login.tpl'}
                                        {else}
                                            {include file='left_menu.tpl'}
                                        {/if}
					<div class="clear-floating"></div>
                                        {contestWidget}
				</div>
				<div class="content">
					<p class="links">
                                            {breadcrumbs}
					</p>
					<div class="window">
						<div class="window-head">
						</div>
						<div class="window-content">
							{$content}
						</div>
						<div class="window-bottom-left">
							<div class="window-bottom-right">
							</div>
						</div>
					<div class="clear-floating"></div>
				</div>
				<div class="clear-floating"></div>
			</div>
			<div class="clear-floating"></div>
		</div>
		{include file='footer.tpl'}
	</body>
</html>
{/strip}